/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package simhya.model.store.jepstore;

import java.util.ArrayList;
import simhya.matheval.SymbolArray;
import simhya.model.store.Store;
import simhya.model.store.Function;

/**
 *
 * @author Luca
 */
public class GenericFunction implements Function {
    private int ID;
    private Store store;

    public GenericFunction(int ID, Store store) {
        this.ID = ID;
        this.store = store;
    }

    public double compute() {
        return store.computeFunction(ID);
    }

    public double compute(SymbolArray vars) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public ArrayList<Integer> getVariableList() {
        return store.getVariableListOfFunction(ID);
    }

    public void initialize() {  }
}
